import java.util.Calendar;

/**
 * ClassName: Java08_Object
 * Package: PACKAGE_NAME
 * DESCRIPTION:
 *
 * @Author 程翎钥
 * @Create 2024/4/9 15:56
 * @Version 1.0
 */
public class Java08_Object {
    public static void main(String[] args) {
//        System.out.println("一\t二\t三\t四\t五\t六\t日");
        Calendar now = Calendar.getInstance();
      System.out.println(now.getActualMaximum(Calendar.DAY_OF_MONTH));
//        System.out.println(now.get(Calendar.DAY_OF_WEEK));
//        System.out.println(now.get(Calendar.DAY_OF_YEAR));
//        System.out.println(now.get(Calendar.DAY_OF_WEEK_IN_MONTH));
        //now.setTime(new Date());
//        now.add(Calendar.YEAR,-1);
//        System.out.println(now.get(Calendar.YEAR));
    }
}
